Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development


Disabling and hiding buttons and menu items

The Progress Dynamics toolbars are made up of buttons and menu items whose state changes as the application runs. You see this whenever you navigate through records or make changes to a record and select the Save button. Later we discuss how to define the specific logic for instances when items are enabled and disabled, hidden and viewed, or the button image is changed. This section discusses how to define the list of items that should be removed from a toolbar at run time, either by hiding them or disabling them.

Obviously, if your application needs a toolbar that does not match any of the standard toolbars already defined in the framework, you should define a toolbar that has exactly the items you need on it. But sometimes you might want to disable or hide items programmatically under certain circumstances, so that they are sometimes available and sometimes not. There are two toolbar properties and several functions that assist you in doing this. The properties are DisabledActions and HiddenActions.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095